﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListDisplayAdministrationUserControl.ascx.cs"
    Inherits="SecurityAdministration.ListDisplayAdministrationUserControl" %>
<table class="ms-bodyareacell">
    <tr style="background-color: Gray; text-align: center;">
        <td>
            <b>Department to Administrate</b>
        </td>
        <td>
            <b>Department to select fields from</b>
        </td>
        <td>
            <b>Available Fields For Selection</b>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <b>Selected Fields</b>
        </td>
        <td>
            <b>All Department Selected Fields</b>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <asp:ListBox ID="departmentListControl" runat="server" Height="365px" Width="175px"
                AutoPostBack="True" OnSelectedIndexChanged="SourceDepartmentChanged"></asp:ListBox>
        </td>
        <td valign="top">
            <asp:ListBox ID="columnSelectionDepartmentList" runat="server" Height="365px" Width="175px"
                AutoPostBack="True" OnSelectedIndexChanged="SelectionDepartmentChanged"></asp:ListBox> 
        </td>
        <td valign="top">
            <asp:ListBox ID="availableFieldsControl" runat="server" Height="365px" Width="175px"
                SelectionMode="Multiple"></asp:ListBox>
        </td>
        <td width="110">
            <asp:Button ID="addField" runat="server" Text="Add &gt;&gt;" OnClick="addField_Click"
                Width="80px" />
            <br />
            <asp:Button ID="removeField" runat="server" Text="&lt;&lt; Remove" OnClick="removeField_Click"
                Width="80px" />
        </td>
        <td valign="top">
            <asp:ListBox ID="currentlyVisibleFields" runat="server" Height="365px" Width="175px"
                SelectionMode="Multiple"></asp:ListBox>
        </td>
        <td valign="top" width="110">
            <asp:TreeView ID="generalAllFieldsView" runat="server" ImageSet="Simple" ShowLines="True">
                <ParentNodeStyle Font-Bold="False" />
                <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
                    VerticalPadding="0px" />
                <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px"
                    NodeSpacing="0px" VerticalPadding="0px" />
            </asp:TreeView>
        </td>
    </tr>
</table>
